﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ProjectExperience.ascx.cs"
    Inherits="Job.Web.userControls.Personal.ProjectExperience" %>

<script type="text/javascript">
	var pname = "<%= txtProjectName.ClientID%>";
	var pdesc = "<%= txtPDESC.ClientID%>";
	var rdesc = "<%= txtRDESC.ClientID%>";
	
    $(document).ready(function() {
        $.formValidator.initConfig({ formid: "aspnetForm", onerror: function(msg) { alert('校验没有通过，具体错误请看错误提示') } });
        $("#" + pname).formValidator({ onshow: " ", onfocus: " ", oncorrect: " " }).inputValidator({ min: 1, max: 200, onerror: "<img alt='请输入项目名称' src='/Images/no_com.gif' width=15 height=15 />" });
        $("#" + pdesc).formValidator({ onshow: " ", onfocus: " ", oncorrect: " " }).inputValidator({ min: 1, max: 2000, onerror: "<img alt='请输入项目描述' src='/Images/no_com.gif' width=15 height=15 />" }); //.defaultPassed();
        $("#" + rdesc).formValidator({ onshow: " ", onfocus: " ", oncorrect: " " }).inputValidator({ min: 1, max: 2000, onerror: "<img alt='请输入责任描述' src='/Images/no_com.gif' width=15 height=15 />" }); //.defaultPassed();
    }
);
</script>

<table border="1px" bordercolor="#d8e1e7" style="border-style: solid; border-collapse: collapse"
    width="750" class="ResumeBaseTable" align="left">
    <tr>
        <td colspan="2" class="title_1">
            <asp:Label ID="lblWork" runat="server" Text="项目经验"></asp:Label>
        </td>
    </tr>
    <tr align="left">
        <td class="ResumeLabelTD" colspan="2" id="message" runat="server">
            &nbsp
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:GridView ID="gvProject" runat="server" CssClass="table_style1" Width="100%"
                AutoGenerateColumns="False" OnRowCommand="gvProject_RowCommand" OnRowDeleting="gvProject_RowDeleting">
                <HeaderStyle CssClass="table_style1_th" />
                <Columns>
                    <asp:BoundField DataField="ProjectTime" HeaderText="时间" ItemStyle-CssClass="table_style1_td"　ItemStyle-Width="18%">
                        <ItemStyle CssClass="table_style1_td"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="ProjectName" HeaderText="项目名称" ItemStyle-CssClass="table_style1_td">
                        <ItemStyle CssClass="table_style1_td"></ItemStyle>
                    </asp:BoundField>
                    <asp:TemplateField Visible="False">
                        <ItemTemplate>
                            <asp:Label ID="lblid" runat="server" Text='<%# Bind("ID") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle CssClass="table_style1_td" />
                    </asp:TemplateField>
                    <asp:TemplateField InsertVisible="False" ShowHeader="False"　ItemStyle-Width="10%">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtEdit" runat="server" CausesValidation="False" CommandName="Edit"
                                Text="编辑" CommandArgument='<%# Eval("ID") %>'></asp:LinkButton>
                            &nbsp;&nbsp;
                            <asp:LinkButton ID="lbtDelete" runat="server" CausesValidation="False" CommandName="Delete"
                                Text="删除" CommandArgument='<%# Eval("ID") %>' OnClientClick="return confirm('确认要删除这条工作经验吗?')"></asp:LinkButton>
                        </ItemTemplate>
                        <ItemStyle CssClass="table_style1_td" />
                    </asp:TemplateField>
                </Columns>
                <SelectedRowStyle BackColor="#EAECEC" />
                <AlternatingRowStyle BackColor="#F6F6F6" />
            </asp:GridView>
        </td>
    </tr>
    <tr>
        <td colspan="2">
        </td>
    </tr>
    <tr>
        <td colspan="2" class="title_1">
            <asp:Label ID="lblMode" runat="server" Text=""></asp:Label>
            ( <font color="#ec0000">*</font> 为必填项)
        </td>
    </tr>
    <tr align="left">
        <td class="ResumeLabelTD">
            &nbsp; 时间 <font color="#ec0000">*</font>
        </td>
        <td class="ResumeTD">
            从<asp:DropDownList ID="ddlFYear" runat="server" Width="64px">
            </asp:DropDownList>
            年<asp:DropDownList ID="ddlFMonth" runat="server" Width="64px">
            </asp:DropDownList>
            月 到
            <asp:DropDownList ID="ddlTYear" runat="server" Width="64px">
            </asp:DropDownList>
            年<asp:DropDownList ID="ddlTMonth" runat="server" Width="64px">
            </asp:DropDownList>
            月
        </td>
    </tr>
    <tr align="left">
        <td class="ResumeLabelTD">
            &nbsp; 项目名称 <font color="#ec0000">*</font>
        </td>
        <td class="ResumeTD">
            <asp:TextBox ID="txtProjectName" runat="server" Width="489px" CssClass="TextBox"
                MaxLength="50"></asp:TextBox>
            <span id="ctl00_maincontent_ctl05_txtProjectNameTip"></span>
        </td>
    </tr>
    <tr align="left">
        <td class="ResumeLabelTD">
            &nbsp; 软件环境
            <td class="ResumeTD">
                <asp:TextBox ID="txtSoft" runat="server" Width="489px" CssClass="TextBox" MaxLength="100"></asp:TextBox>
                <span id="ctl00_maincontent_ctl05_txtPositionNameTip"></span>
            </td>
    </tr>
    <tr align="left">
        <td class="ResumeLabelTD">
            &nbsp; 硬件环境
        </td>
        <td class="ResumeTD">
            <asp:TextBox ID="txtHard" runat="server" Width="489px" CssClass="TextBox" MaxLength="100"></asp:TextBox>
            <span id="ctl00_maincontent_ctl05_txtWorkDescTip"></span>
        </td>
    </tr>
    <tr align="left">
        <td class="ResumeLabelTD">
            &nbsp; 开发工具
        </td>
        <td class="ResumeTD">
            <asp:TextBox ID="txtTool" runat="server" Width="489px" CssClass="TextBox" MaxLength="100"></asp:TextBox>
            <span id="Span1"></span>
        </td>
    </tr>
    <tr align="left">
        <td class="ResumeLabelTD">
            &nbsp; 项目描述 <font color="#ec0000">*</font>
        </td>
        <td class="ResumeTD">
            <asp:TextBox ID="txtPDESC" runat="server" Height="170px" TextMode="MultiLine" Width="491px"
                CssClass="TextBox" MaxLength="1000"></asp:TextBox>
            <span id="ctl00_maincontent_ctl05_txtPDESCTip"></span><span id="Span2"></span>
        </td>
    </tr>
    <tr align="left">
        <td class="ResumeLabelTD">
            &nbsp; 责任描述 <font color="#ec0000">*</font>
        </td>
        <td class="ResumeTD">
            <asp:TextBox ID="txtRDESC" runat="server" Height="170px" TextMode="MultiLine" Width="491px"
                CssClass="TextBox" MaxLength="1000"></asp:TextBox>
            <span id="ctl00_maincontent_ctl05_txtRDESCTip"></span><span id="Span4"></span>
        </td>
    </tr>
    </tr>
    <tr align="left">
        <td class="ResumeLabelTD">
            &nbsp;
        </td>
        <td class="ResumeTD">
            <asp:CheckBox ID="cbShow" runat="server" Checked="True" Text="将此项目经验显示在简历中" />
        </td>
    </tr>
    <tr>
        <td colspan="2" align="center">
            <asp:Button ID="btnSave" runat="server" Text="保存工作经验" CssClass="btn_2k3" OnClick="btnSave_Click" />
        </td>
    </tr>
</table>
